package com.jdz.service.impl;


import com.jdz.dao.NoiseDao;
import com.jdz.entities.NoiseRow;
import com.jdz.service.NoiseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;

@Service

public class NoiseServiceImpl implements NoiseService {
    @Resource
    private NoiseDao noiseDao;
    public int addNoiseRow(NoiseRow noiseRow){
        return noiseDao.addNoiseRow(noiseRow);
    }

    //读取出时间a-->时间b时间内时间同步的结果
    public ArrayList<NoiseRow> getAllNoise(){
        return noiseDao.getAllNoise();
    }

    //读取整个时间段内时间同步的结果
    public ArrayList<NoiseRow> getNoiseByTime(float begin,float end){
        return noiseDao.getNoiseByTime(begin,end);
    }







}
